package graph.contentprovider;

import graph.dependencies.IDependency;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

public class DependenciesContentProvider implements IStructuredContentProvider {
	
	private List<IDependency> _dependencies = new LinkedList<IDependency>();
	
	public void setDependencies(List<IDependency> dependencies) {
		_dependencies = dependencies;
	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub
	}

	@Override
	public void inputChanged(Viewer arg0, Object arg1, Object arg2) {
		// TODO Auto-generated method stub
	}

	@Override
	public Object[] getElements(Object arg0) {
		return _dependencies.toArray();
	}
	
}